package com.ruoyi.datastatistics.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.datastatistics.domain.PublicShareComsumeReport;
import org.apache.ibatis.annotations.Param;

/**
 * 公摊报Mapper接口
 *
 * @author gdqt
 * @date 2025-05-13
 */
public interface PublicShareComsumeReportMapper extends BaseMapper<PublicShareComsumeReport>
{
    //查找区域下公摊汇总
    List<PublicShareComsumeReport> selectTotalReportList(PublicShareComsumeReport publicShareComsumeReport);

    List<PublicShareComsumeReport> selectReportDetailList(PublicShareComsumeReport publicShareComsumeReport);

    List<PublicShareComsumeReport> selectComsumeDetailList(PublicShareComsumeReport publicShareComsumeReport);
    Map selectComsumeDetailListSum(PublicShareComsumeReport publicShareComsumeReport);
    List<PublicShareComsumeReport> selectComsumeDetailList1(PublicShareComsumeReport publicShareComsumeReport);

    List<PublicShareComsumeReport> selectComsumeDetailList2(PublicShareComsumeReport publicShareComsumeReport);

    int insertForWaterTerminalsForOne(@Param("freezeTime") String freezeTime, @Param("userId")String userId);

    int insertForElectricityTerminalsForOne(@Param("freezeTime") String freezeTime, @Param("userId")String userId);

    int insertForWaterTerminalsForTwo(@Param("month") String month,@Param("freezeTime") String freezeTime, @Param("userId")String userId);

    int insertForElectricityTerminalsForTwo(@Param("month") String month,@Param("freezeTime") String freezeTime, @Param("userId")String userId);

    List<PublicShareComsumeReport> publicShareListForBill(PublicShareComsumeReport publicShareComsumeReport);
}
